package com.yf.dxapp.module.app.controller.admin.favorite.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 收藏新增/修改 Request VO")
@Data
public class FavoriteSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "184")
    private Long id;

    @Schema(description = "收藏人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2105")
    @NotNull(message = "收藏人ID不能为空")
    private Long collectorId;

    @Schema(description = "收藏人名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "收藏人名称不能为空")
    private String collectorName;

    @Schema(description = "ENUM-收藏类型:PRODUCT-商品", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "ENUM-收藏类型:PRODUCT-商品不能为空")
    private Integer type;

    @Schema(description = "关联记录ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "4556")
    @NotNull(message = "关联记录ID不能为空")
    private Long refId;

    @Schema(description = "ENUM-收藏状态:NO-未收藏,YES-已收藏", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "ENUM-收藏状态:NO-未收藏,YES-已收藏不能为空")
    private Integer status;

}